
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>小米商城</title>
	<meta name="description" content="小米官网直营小米公司旗下所有产品，包括小米手机系列小米10 Pro 、小米9、小米MIX Alpha，Redmi 红米系列Redmi 10X、Redmi K30，小米电视、笔记本、米家智能家居等，同时提供小米客户服务及售后支持." />
    <meta name="keywords" content="小米,redmi,小米10,Redmi 10X,小米MIX Alpha,小米商城" />
	<!--处理样式-->
	<link rel="stylesheet" type="text/css" href="static/css/reset.css">
	<!--公共的CSS-->
	<link rel="stylesheet" type="text/css" href="static/css/style.css">
	<!--首页的CSS-->
	<link rel="stylesheet" type="text/css" href="static/css/index.css">
	<!--引入网页标题图标-->
	<link rel="shortcut icon" type="static/image/x-icon" href="static/img/favicon.ico">
</head>
<style>
.inner_body {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* 输入框样式 */
.input-group {
    margin-bottom: 20px;
}

/* 商品类别下拉样式 */
.menu_cate .dropdown-menu {
    background-color: #fff; /* 下拉菜单背景色 */
}

.menu_cate .dropdown-menu li {
    padding: 5px 10px;
}

.menu_cate .dropdown-menu li a {
    color: #333; /* 下拉菜单文字颜色 */
}

.menu_cate .dropdown-menu li:hover {
    background-color: #f5f5f5; /* 鼠标悬停背景色 */
}

/* 按钮样式 */
.fb {
    background-color: #5cb85c; /* 按钮背景色 */
    border-color: #4cae4c; /* 按钮边框颜色 */
    color: #fff; /* 按钮文字颜色 */
}

.fb:hover {
    background-color: #4cae4c; /* 按钮悬停背景色 */
    border-color: #4cae4c; /* 按钮悬停边框颜色 */
}
</style>
<body>
<div class="page-top">
	<div class="container">
	<div class="top-lt">
		<a href="{{ url_for('index') }}">小米商城</a>
			<span>|</span>
		<a href="">MIUI</a>
			<span>|</span>
		<a href="">IoT</a>
			<span>|</span>
		<a href="">云服务</a>
			<span>|</span>
		<a href="">金融</a>
			<span>|</span>
		<a href="">有品</a>
			<span>|</span>
		<a href="">小爱开放平台</a>
			<span>|</span>
		<a href="">企业团购</a>
			<span>|</span>
		<a href="">资质证照</a>
			<span>|</span>
		<a href="">协议规则</a>
			<span>|</span>
		<a href="" class="download">下载app
			<div class="down-box">
				<img src="static/img/download.png" alt="小米商城">
				小米商城APP
			</div>
		</a>
	</div>

	<div class="top-gt">
		<div class="car-box">
			<a href="" class="tit">购物车</a>
			<div class="pop">
			<!--	<p class="no-good">购物车还没有商品，赶紧选购吧！</p>  -->
			<ul class="list">
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>
				<li>
					<a href="" class="pic"><img src="static/img/mi10.png"></a>
					<div class="txt">小米10，全网通版</div>
					<div class="num">
						<i>X</i>
						<h4>3299元 X 1</h4>

					</div>
				</li>

			</ul>
			<div class="total">
				<div class="price">
					<p>共八件商品</p>
					<h3>6062元</h3>
				</div>
				<a href="" class="btn">立即结算</a>
			</div>

			</div>
		</div>
		<div class="login">
			{% if session['logged_in'] %}
                                <span class="username">欢迎{{session['username']}}登录</span>
									<a href="/product_board">商品管理</a>
                                <a href="/logout">退出</a>
                            {% else %}
                                <a href="/login">登录</a>
                            {% endif %}
			<span>|</span>
			<a href="register">注册</a>
			<span>|</span>





		</div>
		<!--<div class="userinfo">
			<a href="" class="link">消息通知</a>
			<a href="" class="link">我的订单</a>
			<div class="user">
				<a href="" class="tit">用户~~</a>
				<ul>
				<li><a href="">个人中心</a></li>
				<li><a href="">评价晒单</a></li>
				<li><a href="">我的喜欢</a></li>
				<li><a href="">小米账号</a></li>
				<li><a href="">退出登录</a></li>
				</ul>
			</div>
-->		</div>
	</div>
	</div>
</div>
<!--导航-->
<div class="page-nav">
	<div class="container">
		<a href="{{ url_for('index') }}" class="logo"></a>
		<ul class="nav">

			<li class="nav-item">
				<a href="" class="tit">小米手机</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">Redmi 红米</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">电视</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">笔记本</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">家电</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">路由器</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">智能硬件</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">服务</a>
			</li>
			<li class="nav-item">
				<a href="" class="tit">社区</a>
			</li>
		</ul>
		<!--搜索框-->
		<div class="search">
			<form action="" method="post">
				<input type="text" name="" class="q">
				<input type="submit" class="btn" name="" value="">
				<div class="tags">
					<span  >小米14</span>
				</div>

				<ul class="hot">
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>
					<li>
						<a href="">
						<span>红米K30 pro</span>
						</a>
					</li>

				</ul>
			</form>
		</div>
	</div>
</div>

<div class="inner_body" >


<div class="input-group">
	 <form action="/add_product" id="product_form" method="post" enctype="multipart/form-data">
    <span class="input-group-addon">商品类别</span>
    <select class="form-control" id="category_select" name="category">
        <option value="">请选择商品的类别</option>
        <!-- 这里是一些示例类别 -->
        <option value="1">电子产品</option>
        <option value="2">服装</option>
        <option value="3">家居用品</option>
        <option value="4">食品</option>
        <option value="5">书籍</option>
        <!-- 你可以根据需要添加更多类别 -->
    </select>
</div>            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">商品名称</span>
                <input type="text" maxlength="50" id="pname"
                       class="form-control must_input_product" name="pname"
                       placeholder="商品名称" aria-describedby="basic-addon1">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">商品描述</span>
                <textarea class="form-control must_input_product" id="pDesc" name="pDesc"
                          rows="3" placeholder="说说你的商品吧~"></textarea>
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">商品数量</span>
                <input type="number" max="100" maxlength="2" id="counts"
                       onkeyup="this.value=this.value.replace(/\D/g,'')"
                       onafterpaste="this.value=this.value.replace(/\D/g,'')"
                       class="form-control must_input_product" name="counts"
                       placeholder="商品数量" aria-describedby="basic-addon1">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">商品售价</span>
                <input type="number" maxlength="8"
                       onkeyup="value=value.replace(/[^\d.]/g,'')" id="new_price"
                       class="form-control must_input_product" name="new_price"
                       placeholder="商品售价" aria-describedby="basic-addon1">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">商品照片</span>
                <div class="htmleaf-container">
                    <div class="container">

                        <div class="row">
                            <div class="col-md-12">

                                <input type="file" name="file" multiple id="ssi-upload"/>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            {#<button type="submit" class="btn btn-success fb" style="width: 100%;"
                    onclick="checkAll()">发布商品
            </button>
            #}
             <input type="submit" class="btn btn-success fb" style="width: 100%;" value="发布商品">
        </form>
    </div>
</div>
</body>
</html>